projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c13d704
)
gsk: Don't leak cairo nodes
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 6 Aug 2020 22:26:42 +0000
(18:26 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 6 Aug 2020 22:35:41 +0000
(18:35 -0400)
Not chaining up in finalize is a leak, after all.
gsk/gskrendernodeimpl.c
patch
|
blob
|
history
diff --git
a/gsk/gskrendernodeimpl.c
b/gsk/gskrendernodeimpl.c
index 3b99ade5d3b2a42913acc78e962302cc8d00a082..e8a1ad2a6ec0e3a7ad98a1d66eaed1dab1bbf143 100644
(file)
--- a/
gsk/gskrendernodeimpl.c
+++ b/
gsk/gskrendernodeimpl.c
@@
-1660,9
+1660,12
@@
static void
gsk_cairo_node_finalize (GskRenderNode *node)
{
GskCairoNode *self = (GskCairoNode *) node;
+ GskRenderNodeClass *parent_class = g_type_class_peek (g_type_parent (GSK_TYPE_CAIRO_NODE));
if (self->surface)
cairo_surface_destroy (self->surface);
+
+ parent_class->finalize (node);
}
static void